﻿using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Graphics;

namespace Spacer
{
    public class HowToPlay : Activity
    {
        public void Initialize()
        {
            tex = Main.FindTexture("Spacer-Controls");
        }

        public void Paused()
        {

        }

        public void Resumed()
        {

        }

        public void Shutdown()
        {
        }

        public void Update()
        {
            if ((Input.IsKeyDown(Keys.Escape) && !Input.WasKeyDown(Keys.Escape)) ||
                (Input.IsGamePadButtonDown(GamePadButton.B) && !Input.WasGamePadButtonDown(GamePadButton.B)))
                m_bFinished = true;

        }

        public void DrawWorld()
        {
        }

        public void DrawOverlay()
        {


            //Draw Black Background, or BLACKGROUND!
            Surface.DrawColor = Color.White;
            Surface.DrawRect(tex,Vector2.Zero, new Vector2(Surface.Width, Surface.Height), Vector2.Zero, 0f, Layer.LAYER_20);
            
        }

        public bool IsModal()
        {
            return true;
        }

        public bool IsTransparent()
        {
            return true;
        }

        public bool IsFinished()
        {
            return m_bFinished;
        }

        // ----------

        bool m_bFinished;
        Texture2D tex;
    }
}
